package com.wmlive.hhvideo.heihei.recordvideo;

import android.os.Parcel;
import android.os.Parcelable;

import com.wmlive.hhvideo.heihei.beans.subject.TopicInfo;

/**
 * 自定义第三方短视频扩展类
 * Created by kangzhen on 2017/6/7.
 */

public class UserShorVideoInfoExtraInfo implements Parcelable {
    public TopicInfo topicInfo;//话题信息
    public String at_user_ids;//at 的用户信息

    public UserShorVideoInfoExtraInfo() {
    }

    public UserShorVideoInfoExtraInfo(TopicInfo topicInfo, String at_user_ids) {
        this.topicInfo = topicInfo;
        this.at_user_ids = at_user_ids;
    }

    public TopicInfo getTopicInfo() {
        return topicInfo;
    }

    public void setTopicInfo(TopicInfo topicInfo) {
        this.topicInfo = topicInfo;
    }

    public String getAt_user_ids() {
        return at_user_ids;
    }

    public void setAt_user_ids(String at_user_ids) {
        this.at_user_ids = at_user_ids;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(topicInfo,flags);
        dest.writeString(at_user_ids);
    }
    public UserShorVideoInfoExtraInfo(Parcel in) {
        at_user_ids = in.readString();
        this.topicInfo = in.readParcelable(TopicInfo.class.getClassLoader());
    }


    public static final Creator<UserShorVideoInfoExtraInfo> CREATOR = new Creator<UserShorVideoInfoExtraInfo>() {
        @Override
        public UserShorVideoInfoExtraInfo createFromParcel(Parcel source) {
            return new UserShorVideoInfoExtraInfo( source);
        }

        @Override
        public UserShorVideoInfoExtraInfo[] newArray(int size) {
            return new UserShorVideoInfoExtraInfo[size];
        }
    };
}
